package com.freestyle.sentinel.com.freestyle.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.freestyle.sentinel.BlockExceptionEx;
import com.freestyle.sentinel.MethodArgs;
import com.freestyle.sentinel.ThrowableEx;

/**
 * Created by rocklee on 2022/3/28 16:59
 */
public interface GlobalHandler {
  Object globalBlockHandler(BlockException flowException, MethodArgs methodArgs) ;
  Object globalFallBackHandler(Throwable throwable, MethodArgs methodArgs) ;
}
